package org.summerframework.core.base.dto;

/**
 * @author 石超
 * @version v1.0.0
 */
public interface BaseEnum {
    Integer getCode();

    String getDesc();

    default boolean isType(Integer code) {
        return getCode().equals(code);
    }
}
